package connect4client.commands;


import messages.ChatMessage;


/**
 * The Chat command.
 * 
 * This command will handle Invite messages.
 */
public class ChatCommand extends Command {

	public ChatCommand(ChatMessage chatMessage){
		super(chatMessage);
	}
	
	@Override
	public void execute() {
		ChatMessage message = ((ChatMessage)this.message);		
		guiMediator.chat(message.getOriginLogin(),message.getContents(), message.getMatchId());		
	}
}
